package com.geotmt.billingcenter.modules.consume.mapper;

import com.geotmt.billingcenter.common.entry.ConsumeRuleHisEntry;
import com.geotmt.billingcenter.modules.consume.mapper.provider.ConsumeRuleHisProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * @Description 类描述
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/3/13 15:22
 * @Version     v1
 **/
@Mapper
public interface ConsumeRuleHisMapper {

    /**
     * add
     * @param obj
     * @return
     */
    @InsertProvider(type = ConsumeRuleHisProvider.class, method = "add")
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    Integer addRuleHis(ConsumeRuleHisEntry obj);

}
